import request from '~/utils/request'
export default{
  // 首页查询讲师热门数据
  getTeacher() {
    return request({
      url: '/api/edu/teacher/getHotTeachers',
      method: 'get'
    })
  },
  // 根据讲师Id查已发布的课程
  getCourseByTeacherId(teacherId) {
    return request({
      url: `/api/edu/teacher/getCourseByTeacherId/${teacherId}`,
      method: 'get'
    })
  },
  // 根据Id查讲师详情
  getById(id) {
    return request({
      url: `/api/edu/teacher/getById/${id}`,
      method: 'get'
    })
  },
  // 查询所有讲师
  list() {
    return request({
      url: '/api/edu/teacher/list',
      method: 'get'
    })
  }
}
